MPICameraControlsManager

class MPICameraControlsManager

A camera controls manager.

This class encapsulates the methods that manipulate the camera.

Constructors

Link copied to clipboard
fun MPICameraControlsManager()

Functions

Link copied to clipboard
fun setMaxZoom(zoomLevel: Int)

Sets the maximum zoom level of MPIMapView

Link copied to clipboard
fun setMinZoom(zoomLevel: Int)

Sets the minimum zoom level of MPIMapView

Link copied to clipboard
fun setRotation(rotation: Double, callback: (String?, String?) -> Unit? = null)

Sets the current camera rotation of MPIMapView

Link copied to clipboard
fun setTilt(tilt: Double, callback: (String?, String?) -> Unit? = null)

Sets the current camera tilt of MPIMapView

Link copied to clipboard
fun setZoom(zoom: Double, callback: (String?, String?) -> Unit? = null)

Sets the current zoom level of MPIMapView

Properties

Link copied to clipboard
var rotation: Double = 0.0

the current camera rotation of MPIMapView.

Link copied to clipboard
var tilt: Double = 0.0

the current camera tilt of MPIMapView.

Link copied to clipboard
var zoom: Double = 0.0